<header class="common-header">
    <a href="/wap/index">
        <img class="logo" src="./image/logo.png">
    </a>
    <ul class="nav">
        {%if $user_name%}
            <li class="user"><a href="/wap/wallet">我的账户</a></li>
        {%else%}
            <li><a class="btn-login">登录</a></li>
            <li>|</li>
            <li><a href="/wap/register">注册</a></li>
        {%/if%}
    </ul>
    {%script%}
       require("wap_common:widget/commonheader/commonheader.js").commonheader();
    {%/script%}
</header>